Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored UUID into SessionID interface #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dlorych
Copy link

@dlorych dlorych commented Jul 14, 2014

Hi,

Introducing AuthorizationHandler was a great step forward, finally we can integrate our websites with netty-socketio. Unfortunately, the session ids used by apps does not have to comply with UUID format.

To overcome this I have created a SessionID interface and an abstract factory SessionIDFactory, with default implementation based on UUID. The developers can now create their own implementations of session ids using their formats.

The project is missing unit tests, and I did not have time yet to verify the solution is not breaking any other functionality.

Feel free to merge these changes if you find it useful.

daniel and others added 3 commits July 14, 2014 00:22
rest of code to use it.

Modified AuthorizeHandler to check for sessionID in handshake data -
AuthorizationListener is able to extract data from Cookie and put it
back to HandshakeData.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant